package com.isoftstone.industry.aaa.core.dao.assist;

import java.sql.Timestamp;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.isoftstone.industry.persistance.bean.TicketRebuildTask;
import com.isoftstone.modules.core.persistence.IGenericDao;

public interface TicketRebuildTaskDao  extends IGenericDao<TicketRebuildTask, String>{
	@Modifying
	@Query("update TicketRebuildTask d set d.deleted = :deleted, d.deletedTime= :deletedTime where d.chargingItem.id = :chargingItemId")
	void deleteByChargingItem(@Param("chargingItemId") String chargingItemId, @Param("deleted")Boolean deleted, @Param("deletedTime") Timestamp deletedTime);
}
